
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>CSS补间动画</title>
  <style>
    .container {
      width: 100px;
      height: 100px;
      background: red;
      /*transition: all 1s; !*动画属性+时间*/
      transition: width 1s, background 3s;
      transition-timing-function: ease-in-out;
      /*transition-timing-function: cubic-bezier(0.465, -0.460, 0.525, 1.435);*/
      /* transition-delay: 1s; */
    }
    .container:hover {
      width: 800px;
      background:green;
    }
  </style>
</head>
<body>
  <div class="container">
  </div>
</body>
